package com.huilian.iotbox.admin.dao;

import com.huilian.iotbox.data.dto.DeviceBuyOrderDto;
import com.huilian.iotbox.data.po.DeviceBuyOrder;
import com.huilian.iotbox.data.vo.DeviceBuyOrderVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 谢洛涛
 * @date 2021/9/7 19:30
 */
public interface DeviceBuyOrderDao {
    DeviceBuyOrderVo findDeviceBuyOrderByOutTradeNoAndTotalAmount(
            @Param("outTradeNo") String outTradeNo,@Param("totalAmount") BigDecimal totalAmount);

    Integer update(DeviceBuyOrder deviceBuyOrder);

    Integer insert(DeviceBuyOrderDto deviceBuyOrderDto);

    List<DeviceBuyOrderVo> findDeviceBuyOrderList(DeviceBuyOrderDto deviceBuyOrderDto);

    DeviceBuyOrderVo findDeviceBuyOrderById(DeviceBuyOrderDto deviceBuyOrderDto);
}
